package com.dto.api;

import com.dto.GoodsDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("goods-service")
public interface GoodsApi {

    @GetMapping("/goods/page")
    public List<GoodsDto> page(@RequestParam("goodsName") String goodsName);


}
